//
//  RPBaseAnimation.h
//  RPAlertControllerDemo
//
//  Created by iOS on 21/11/22.
//  Copyright (c) 2021年 sword. All rights reserved.
//

#import "RPAlertController.h"
#import <UIKit/UIKit.h>

/**
 动画父类
 */
@interface RPBaseAnimation : NSObject <UIViewControllerAnimatedTransitioning>
// 是否弹出
@property(nonatomic, assign, readonly) BOOL isPresenting;
// 初始化
+ (instancetype)alertAnimationIsPresenting:(BOOL)isPresenting;
// 子类重写
- (void)presentAnimateTransition:(id<UIViewControllerContextTransitioning>)transitionContext;
- (void)dismissAnimateTransition:(id<UIViewControllerContextTransitioning>)transitionContext;

@end

/**
 无动画(支持提示框,表格,侧滑)
 */
@interface RPAlertNoneAnimation : RPBaseAnimation

@end

/**
 普通动画(支持提示框,表格,侧滑)
 */
@interface RPAlertNormalAnimation : RPBaseAnimation

@end

/**
 普通动画增加弹跳效果(支持提示框,表格)
 */
@interface RPAlertSpringAnimation : RPBaseAnimation

@end

/**
 掉落动画(支持提示框)
 */
@interface RPAlertDropDownAnimation : RPBaseAnimation

@end
